import { GithubOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-components';
const Footer: React.FC = () => {
  const defaultMessage = 'Hines 出品';
  const currentYear = new Date().getFullYear();
  /**
   * 对下面各部件进行解析说明
   * key：可任意填写，用来表示{}中的内容
   * title：输出在页面中的信息
   * blankTarget：true：点击是否在新的页面窗口中打开
   */
  return (
    <DefaultFooter
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        {
          key: 'gitee',
          title: 'gitee',
          href: 'https://gitee.com/Hines12345',
          blankTarget: true,
        },
        {
          key: 'github',
          title: <GithubOutlined />,
          href: 'https://github.com/ant-design/ant-design-pro',
          blankTarget: true,
        },
        {
          key: 'AuthorInfo',
          title: '作者信息',
          href: 'https://ant.design',
          blankTarget: true,
        },
      ]}
    />
  );
};
export default Footer;
